<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    这是入口，引导用户进入
    <script src="js/jquery-2.1.0.js"></script>
    <script src="js/jssdk.js"></script>
    <script>
        //我的测试号
        var appId = "wxeb31508256b4ce1a";
        var appSecret = "be8d49ed8ad2a409cf5a8c0875b460a1";
        //这里还是需要服务器
        var myIndex = location.protocol+"//"+location.host+"/HTML/getInfo_weixin.html";
        var redirect_url = encodeURIComponent("http://shuaitp.bluej.cn/index.php/index/api/callBack?origin_url="+myIndex+"&appid="+appId+"&secret="+appSecret);
        var scope = "snsapi_userinfo";
        location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${redirect_url}&response_type=code&scope=${scope}&state=STATE#wechat_redirect$app_secret=${appSecret}`;

    </script>
</body>
</html>